Skip to content

Update grid for items to fill space on small screen #789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025

Conversation

markconroy
Copy link
Member

Closes #788

What does this change?

A slightly better way to make sure things take up 100% of their container on small screens without horizontal scrolling being added if there's a large gap set.

How to test

Without this patch, set --grid-column-spacing to 3rem, visit a page on a small screen and check if there's any horizontal scroll.

Checkout this branch, and the horizontal scrolling should be gone.

@markconroy markconroy requested review from ctorgalson and msayoung May 27, 2025 18:22
@markconroy
Copy link
Member Author

Just a note for Merge Tuesday, the person approving this is Samer Ali, a developer with Big Blue Door. I got him to test it on a few of their sites and it's working as expected.

Would be good to get this merged and a new release out. Just leaving this note here as I will not be at Merge Tuesday.

@markconroy markconroy changed the base branch from 1.x to 2.x May 29, 2025 15:07
Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this locally and it helped!

@finnlewis finnlewis merged commit 03c425b into 2.x May 29, 2025
6 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New CSS Grid based layout can cause horizontal scroll on small screens if there's a large gap
3 participants